import assert = require('node:assert/strict');
namespace mod {
  export function getSafeBound(
    _i: number,
    _min: number,
    _max: number,
    _bound = 3,
  ): [min: number, max: number] {
    /** @__PURE__ */assert.ok(_min <= _max);
    /** @__PURE__ */assert.ok(typeof _i === 'number');
    /** @__PURE__ */assert.ok(typeof _min === 'number');
    /** @__PURE__ */assert.ok(typeof _max === 'number');
    return [Math.max(_i - _bound, _min), Math.min(_i + _bound, _max)];
  }
}
export = mod;
